package com.jalopaba.android.Tempodroid;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class Tempodroid extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        final EditText editSeconds = (EditText) findViewById(R.id.editSeconds);
        final Button buttonGo = (Button) findViewById(R.id.buttonGo);
        buttonGo.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
		        Intent intent = new Intent(Tempodroid.this, Temporization.class);
		        
		        Bundle bundle = new Bundle();
		        bundle.putString("seconds", editSeconds.getText().toString());
		        intent.putExtras(bundle);
		 
		        startActivity(intent);
			}
		});
    }
}